package com.autologistics.service;

import java.util.List;

import com.autologistics.dao.GoodskindDao;
import com.autologistics.model.Goodskind;

public class GoodskindServiceImpl implements GoodskindService{
	GoodskindDao goodskindDao;
	
	
	public GoodskindDao getGoodskindDao() {
		return goodskindDao;
	}


	public void setGoodskindDao(GoodskindDao goodskindDao) {
		this.goodskindDao = goodskindDao;
	}


	public List<Goodskind> listAll(){
		System.out.println("goodkindServiceImpl:listAll");
		if(goodskindDao.listAll()==null){
			return null;
		}else{
			return goodskindDao.listAll();
		}
	}


	@Override
	public Goodskind getById(int goodskindId) {
		// TODO Auto-generated method stub
		return goodskindDao.getById(goodskindId);
	}

}
